package com.scau402.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scau402.system.mapper.WmsOutboundOrderMergeMapper;
import com.scau402.system.domain.WmsOutboundOrderMerge;
import com.scau402.system.service.IWmsOutboundOrderMergeService;

/**
 * 出库单合并Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
@Service
public class WmsOutboundOrderMergeServiceImpl implements IWmsOutboundOrderMergeService 
{
    @Autowired
    private WmsOutboundOrderMergeMapper wmsOutboundOrderMergeMapper;

    /**
     * 查询出库单合并
     * 
     * @param newOrderId 出库单合并主键
     * @return 出库单合并
     */
    @Override
    public WmsOutboundOrderMerge selectWmsOutboundOrderMergeByNewOrderId(Long newOrderId)
    {
        return wmsOutboundOrderMergeMapper.selectWmsOutboundOrderMergeByNewOrderId(newOrderId);
    }

    /**
     * 查询出库单合并列表
     * 
     * @param wmsOutboundOrderMerge 出库单合并
     * @return 出库单合并
     */
    @Override
    public List<WmsOutboundOrderMerge> selectWmsOutboundOrderMergeList(WmsOutboundOrderMerge wmsOutboundOrderMerge)
    {
        return wmsOutboundOrderMergeMapper.selectWmsOutboundOrderMergeList(wmsOutboundOrderMerge);
    }

    /**
     * 新增出库单合并
     * 
     * @param wmsOutboundOrderMerge 出库单合并
     * @return 结果
     */
    @Override
    public int insertWmsOutboundOrderMerge(WmsOutboundOrderMerge wmsOutboundOrderMerge)
    {
        return wmsOutboundOrderMergeMapper.insertWmsOutboundOrderMerge(wmsOutboundOrderMerge);
    }

    /**
     * 修改出库单合并
     * 
     * @param wmsOutboundOrderMerge 出库单合并
     * @return 结果
     */
    @Override
    public int updateWmsOutboundOrderMerge(WmsOutboundOrderMerge wmsOutboundOrderMerge)
    {
        return wmsOutboundOrderMergeMapper.updateWmsOutboundOrderMerge(wmsOutboundOrderMerge);
    }

    /**
     * 批量删除出库单合并
     * 
     * @param newOrderIds 需要删除的出库单合并主键
     * @return 结果
     */
    @Override
    public int deleteWmsOutboundOrderMergeByNewOrderIds(Long[] newOrderIds)
    {
        return wmsOutboundOrderMergeMapper.deleteWmsOutboundOrderMergeByNewOrderIds(newOrderIds);
    }

    /**
     * 删除出库单合并信息
     * 
     * @param newOrderId 出库单合并主键
     * @return 结果
     */
    @Override
    public int deleteWmsOutboundOrderMergeByNewOrderId(Long newOrderId)
    {
        return wmsOutboundOrderMergeMapper.deleteWmsOutboundOrderMergeByNewOrderId(newOrderId);
    }
}
